// components/common/sns-manage-item/index.js
import componentBehavior from '../../../behaviors/component';
import { COMPONENT_OPTIONS, SNS_TYPE_ENUM } from '../../../constants/common';

Component({
    behaviors: [componentBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        checked: {
            type: Boolean,
            value: false,
        },
        snsInfo: {
            type: Object,
            value: {},
        },
    },
    data: {
        SNS_TYPE_ENUM,
    },
    methods: {
        handleClick() {
            const { snsInfo } = this.data;
            this.triggerEvent('click', snsInfo);
        },
        handleMore() {
            const { snsInfo } = this.data;
            this.triggerEvent('more', snsInfo);
        },
    }
})
